//
//  PGNewViewController.m
//  youqu
//
//  Created by 彭鹏 on 16/9/3.
//  Copyright © 2016年 pengpeng. All rights reserved.
//

#import "PGNewViewController.h"
#import "PGTagController.h"

@interface PGNewViewController ()

@end

@implementation PGNewViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    //leftBarButtonItem
    self.navigationItem.leftBarButtonItem = [UIBarButtonItem barButtonItemWithImageNamed:@"MainTagSubIcon" imageHighlighted:@"MainTagSubIconClick" target:self action:@selector(recommandButtonClick)];
    
    //titleView
    self.navigationItem.titleView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"MainTitle"]];
//    NSLog(@"%@",self);
    [self recommandButtonClick];
    
}

- (void)recommandButtonClick {
    PGTagController *tagController = [[PGTagController alloc] init];
//    tagController.view.backgroundColor = [UIColor yellowColor];
//    recommandViewController.hidesBottomBarWhenPushed = YES;
//    NSLog(@"%@",self.navigationController);
    [self.navigationController pushViewController:tagController animated:YES];
}

@end
